<include file="public/layout" />

<body style="background-color: rgb(255, 255, 255); overflow: auto; cursor: default;">
	<div class="page">
		<div class="fixed-bar">
			<div class="item-title">
				<div class="subject">
					<h3>品酒站成员列表</h3>
					<h5>品酒站成员列表管理</h5>
				</div>
			</div>
		</div>
		<div id="explanation" class="explanation">
			<div id="checkZoom" class="title"><i class="fa fa-lightbulb-o"></i>
				<h4 title="提示相关设置操作时应注意的要点">操作提示</h4>
				<span title="收起提示" id="explanationZoom"></span>
			</div>
			<ul>
				<li>此列表为俱乐部成员列表，若要查看成员详细信息请到会员中心查看</li>
			</ul>
		</div>
		<div class="flexigrid">
			<div class="mDiv">
				<div class="ftitle">
					<h3>品酒站成员管理</h3>
					<h5></h5>
				</div>
			</div>
			<div class="hDiv">
				<div class="hDivBox" id="">
					<table cellspacing="0" cellpadding="0" class="flex-table autoht">
						<thead>
							<tr>
								<th align="center" axis="co5" class="sign">
									<div style="width: 24px;"><i class="ico-check"></i></div>
								</th>
								<th  axis="col3">
									<div style=" width: 152px;">操作</div>
								</th>
								<th  axis="co5" >
									<div style="width: 100px;">会员ID</div>
								</th>
								<th  axis="col3" >
									<div style="width: 150px;">昵称</div>
								</th>
								<th  axis="col3">
									<div style=" width: 150px;">手机号</div>
								</th>
								<th  axis="col3">
									<div style=" width: 100px;">俱乐部推广人数</div>
								</th>
								<th  axis="col3">
									<div style=" width: 200px;">所属俱乐部</div>
								</th>
								<th  axis="col3">
									<div style=" width: 100px;">审核在状态</div>
								</th>
								<th  axis="col3">
									<div style=" width: 150px;">加入时间</div>
								</th>
							</tr>
						</thead>
					</table>
				</div>
			</div>
			<div class="tDiv">
				<div class="tDiv2">
					<a href="{:U('Station/addeditMember',array('id'=>$stationInfo.id))}">
						<div class="fbutton">
							<div title="添加成员" class="add">
								<span><i class="fa fa-plus"></i>添加成员</span>
							</div>
						</div>
					</a>
				</div>
				<div style="clear:both"></div>
			</div>
			<div style="height: auto;" class="bDiv" id="ajax_return">
				<table cellspacing="0" cellpadding="0" border="0" id="article_cat_table" class="flex-table autoht" style="width: auto;">
					<tbody>
						<foreach name="lists" item="vo" key="k" >
						<tr>
						<td class="sign" axis="co5">
							<div style="width: 24px;"><i class="ico-check"></i></div>
						</td>
						<td class="handle">
            				<div style=" width: 152px;"">
              					<span class="btn"><em><i class="fa fa-cog"></i>操作<i class="arrow"></i></em>
              					<ul>
              						<li><a href="{:U('User/detail',array('id'=>$vo.user_id))}">查看会员</a></li>             
                					<li><a href="javascript:del('{:U('Station/delMember',array('user_id'=>$vo.user_id,'id'=>$stationInfo.id))}');">移除该俱乐部</a></li>
                					<li><a href="{:U('Station/addeditMember',array('user_id'=>$vo.user_id,'id'=>$stationInfo.id))}">更改状态</a></li>
              					</ul>
              					</span>
            				</div>
          				</td>
						<td align="left" abbr="order_sn" axis="co13">
							<div style="width: 100px;">{$vo.user_id}</div>
						</td>
						<td align="left" abbr="order_sn" axis="col3" class="" >
							<div style=" width: 150px;" class="">{$vo.nickname}</div>
						</td>
						<td align="left" abbr="order_sn" axis="col3" class="" >
							<div style=" width: 150px;" class="">{$vo.mobile}</div>
						</td>
						<td align="left" abbr="order_sn" axis="col3" class="" >
							<div style=" width: 100px;" class="">{$vo.ext_num}</div>
						</td>
						<td align="left" abbr="order_sn" axis="col3" class="" >
							<div style=" width: 200px;" class="">{$stationInfo.name}</div>
						</td>
						<td align="left" abbr="order_sn" axis="col3" class="" >
							<div style=" width: 100px; " class="">
				                <if condition='$vo[station_status] eq 1'>
				                  <span class="yes" <i class="fa fa-check-circle"></i>通过</span>
				                  <elseif condition='$vo[station_status] eq 0' />
				                  <span class="no" <i class="fa fa-ban"></i>审核中</span>
				                  <elseif condition='$vo[station_status] eq 2' />
				                  <span class="no" <i class="fa fa-ban"></i>拒绝</span>
				                </if>
				            </div>
						</td>
						<td align="left" abbr="order_sn" axis="col3" class="" >
							<div style=" width: 150px;" class="">{$vo.station_time|date="Y-m-d H:i:s",###}</div>
						</td>
						</tr>
						</foreach>
					</tbody>
				</table>
				{$pager}
			</div>
		</div>
	</div>
	<script>
		$(document).ready(function() {
			// 点击分页触发的事件
	        $(".pagination  a").click(function(){
	              cur_page = $(this).data('p');
	              location.href = "/admin/Station/stationMember/id/{$stationInfo.id}/p/"+cur_page;
	        });
			
			// 表格行点击选中切换
			$('.bDiv > table>tbody >tr').click(function() {
				$(this).toggleClass('trSelected');
			});
		});

		// 点击展开 收缩节点
		function treeClicked(obj, cat_id, parent_id_path) {

			var src = $(obj).attr('src');
			if(src == '/public/static/images/tv-expandable.gif') {
				$(".parent_id_" + cat_id).show();
				$(obj).attr('src', '/public/static/images/tv-collapsable-last.gif');
			} else {
				$("tr[parent_id_path^='" + parent_id_path + "_']").hide().find('img').attr('src', '/public/static/images/tv-expandable.gif');
				$(obj).attr('src', '/public/static/images/tv-expandable.gif');

			}
		}
		
		
	</script>
</body>

</html>